from rest_framework import serializers
from goods.models import SKUImage,SKU

#图片管理
class ImageViewserializer(serializers.ModelSerializer):
    class Meta:
        model=SKUImage
        fields="__all__"

#新增图片sku信息序列化
class SPUSerializer(serializers.ModelSerializer):
    class Meta:
        model=SKU
        fields=("id","name")
